package com.pz.cloud.framework.base.model;


import com.baomidou.mybatisplus.annotation.TableField;
import com.pz.cloud.framework.business.workflow.model.WorkflowModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;

/**
 * 标记工作流的类
 * @author 3hmzz
 */
@Data
public class WorkflowEntity extends BaseEntity{

    @TableField(exist = false)
    protected WorkflowModel workflowModel;

    @ApiModelProperty("提交状态 0未提交 1审批中 10已完成")
    @Dict(dicCode = "actStatus")
    private Integer actStatus;

    @ApiModelProperty("当前用户是否能处理 0否 1是")
    @TableField(exist = false)
    private Integer dealFlag;

    @TableField(exist = false)//标记是否能撤回
    @ApiModelProperty(value = "标记是否能撤回 1是 0否")
    private Integer cancelFlag;

    @ApiModelProperty("当前任务处理人")
    @TableField(exist = false)
    private String waitHandler;

    public WorkflowModel getWorkflowModel() {
        if(workflowModel==null){
            workflowModel = new WorkflowModel();
        }
        return workflowModel;
    }

}

